import 'package:flutter/material.dart';
import 'package:flutter_wisave/Tools/NetworkService.dart';

abstract class BasePage extends StatefulWidget {
  const BasePage({Key? key}) : super(key: key);
}

abstract class BasePageState<T extends BasePage> extends State<T> {
  // 公开的 NetworkService 实例
  final NetworkService networkService = NetworkService();

  @override
  void initState() {
    super.initState();
    networkService.setupInterceptors(context);
  }
}